@import url("assets/fonts/Pretendard/pretendardvariable.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&display=swap");
// @import url("lib/quasar/quasar.min.css");
@import url("less/appvars.less");
@import url("less/bootstrap-vue.min.less");
@import url("less/ameframework.less");
@import url("less/codicon.css");
@import url("less/bootstrap.less");
@import url("less/notyf.less");
@import url("less/elements.less");
@import url("less/helpers.less");
@import url("less/pages.less");

:root {
  --windowRelativeScale: 1;
  --appleEase: cubic-bezier(0.42, 0, 0.58, 1);
  --borderColor: rgb(200 200 200 / 16%);
  --mediaItemShadow: inset 0px 0px 0px 1px rgb(200 200 200 / 16%);
  --mediaItemShadow-Shadow: 0 8px 40px rgb(0 0 0 / 0.55);
  --mediaItemShadow-ShadowSubtle: 0 4px 14px rgb(0 0 0 / 10%);
  --ciderShadow-Generic: var(--mediaItemShadow), 0 8px 40px rgb(0 0 0 / 0.55);
  --mediaItemRadius: 8px;
  --mediaItemRadiusSmall: 6px;
  --mediaItemRadiusMedium: 8px;
  --mediaItemRadiusRound: 100%;
  --panelRadius: 10px;
  --contentInnerPadding: 16px;
  --navbarHeight1: 48px;
  --navbarHeight2: 0px;
  --navbarHeight: calc(var(--navbarHeight1) + var(--navbarHeight2));
  --selected: rgb(130 130 130 / 30%);
  --selected-click: rgb(80 80 80 / 30%);
  --hover: rgb(200 200 200 / 10%);
  // --keyColor: #fa586a;
  --keyColorDefault: @keyColor;
  --keyColor: @keyColor;
  --keyColor-rgb: 250, 88, 106;
  --keyColor-rollover: #ff8a9c;
  --keyColor-rollover-rgb: 255, 138, 156;
  --keyColor-pressed: #ff7183;
  --keyColor-pressed-rgb: 255, 113, 131;
  --keyColor-deepPressed: #ff8a9c;
  --keyColor-deepPressed-rgb: 255, 138, 156;
  --keyColor-disabled: rgba(250, 88, 106, 0.35);
  --keyColor-primary: #ff2b52a6;
  --navigationBarHeight: 0px;
  --modalBackground: #262626;
  --songProgressColor: var(--keyColor);
  --songProgressBackground: #333;
  --textColor: #eee;
  --replayGradient: linear-gradient(45deg, hsl(248deg 58% 29%), hsl(13deg 41% 42%));
  --glassFilter: blur(16px) saturate(180%);
  --glassFilterHeavy: blur(64px) saturate(280%);
  --sidebarWidth: 260px;
}

*:focus-visible {
  outline: 2px solid var(--keyColor);
}

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background: #0000;
  font-family:
    "Pretendard Variable",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans TC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  transition: opacity 0.1s var(--appleEase);
}

a:-webkit-any-link {
  color: var(--keyColor);
}

hr {
  appearance: none;
  border: none;
  height: 1px;
  background-color: rgb(255 255 255 / 20%);
}

body[loading] {
  .app-navigation {
    pointer-events: none;
  }
}

body.stopanimation * {
  animation: unset !important;

  .loadbar-sound {
    display: none;
  }
}

body.notransparency::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  display: none;
  background-image: url();
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Modern style overlay scrollbars */
::-webkit-scrollbar {
  width: 16px;
  height: 24px;
}

::-webkit-scrollbar-button {
  display: none;
}

::-webkit-scrollbar-track-piece {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border: 6px solid transparent;
  box-shadow: inset 0px 0px 10px 10px rgb(200 200 200 / 50%);
  border-radius: 16px;
  min-height: 64px;
  transition: border 1s;
}

::-webkit-scrollbar-thumb:hover {
  border: 5px solid transparent;
  box-shadow: inset 0px 0px 10px 10px rgb(200 200 200 / 80%);
}

[disabled] {
  pointer-events: none;
  opacity: 0.5;
}

#app {
  @panelBrightness: 0%;
  @panelTransparency: 50%;
  @msColor1: #202020;
  @msColor2: #272727;
  @msColor3: #2b2b2b;
  --panelColor1: darken(mix(@msColor1, transparent, @panelTransparency), @panelBrightness);
  --panelColor2: darken(mix(@msColor2, transparent, @panelTransparency), @panelBrightness);
  --color1: var(--panelColor2);
  --color2: var(--panelColor1);
  --color3: rgb(0 0 0 / 20%);
  --bgColor: transparent;
  --bgWidth: 0px;
  --bgHeight: 0px;
  --chromeHeight1: 55px;
  --chromeHeight2: 0px;
  --chromeHeight: calc(var(--chromeHeight1) + var(--chromeHeight2));
  width: 100%;
  height: 100%;
  background: transparent;
  color: var(--textColor);
  user-select: none;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background-size: 400% 400%;

  &.simplebg {
    background: #0e0e0e;
  }
}

.bgGradientMaterial-base {
  position: relative;
}

.bgGradientMaterial-base::before {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 250%;
  background-image: var(--bgColor);
  content: "";
  z-index: -1;
  transform: rotateZ(0deg);
  transform-origin: center;
  animation: bgRotate 10s linear infinite;
  filter: brightness(100%) saturate(200%) contrast(1.5);
}

@keyframes bgRotate {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

[hidden] {
  display: none !important;
}

input[type="text"],
input[type="number"] {
  background: #1c1c1c;
  border-radius: 3px;
  border: 1px solid rgb(200 200 200 / 25%);
  color: #eee;
  padding: 6px;
  font-size: 1em;
  font-family: inherit;
}

.bg-artwork--placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #222;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

a.dropdown-item {
  color: var(--textColor);

  &:hover {
    background-color: var(--selected);
    color: var(--textColor);
  }

  &:active {
    background-color: var(--selected-click);
  }
}

.bg-artwork {
  position: absolute;
  width: 200%;
  background: var(--artwork);
  filter: brightness(200%) blur(180px) saturate(280%) contrast(2);
  opacity: 1;
  transition: opacity 0.25s var(--appleEase);
  pointer-events: none;
  transform: translateZ(0px);
  animation: rotateBg 35s linear infinite;
  backface-visibility: hidden;
}

@keyframes rotateBg {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.bg-artwork-container {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  pointer-events: none;
  transform: translateZ(0px);
  z-index: -1;

  .bg-artwork.a {
    top: 0;
    left: 0;
    //mix-blend-mode: luminosity;
  }

  .bg-artwork.b {
    bottom: 0;
    right: 0;
    animation-direction: reverse;
    animation-delay: 10s;
  }

  &.noanimation {
    .bg-artwork {
      animation: none;
    }
  }
}

.artworkMaterial {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  pointer-events: none;

  img {
    position: absolute;
    width: 200%;
    opacity: 0.5;
    filter: brightness(200%) blur(180px) saturate(280%) contrast(2);
  }

  img:first-child {
    top: 0;
    left: 0;
  }

  img:last-child {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
  }
}

[artwork-hidden] {
  transition: opacity 0.25s var(--appleEase);
  opacity: 0;
}

input[type="range"].web-slider {
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  background-size: 70% 100%;
  background-repeat: no-repeat;
}

input[type="range"].web-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: rgb(255 255 255);
  cursor: ew-resize;
  box-shadow: 0 0 2px 0 #555;
}

input[type="range"].web-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.nopadding {
  padding: 0px;
}

#app-main {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  opacity: 1;
  overflow: hidden;
  background-color: rgba(20 20 20 / 0.7);
}

#app-sidebar {
  height: 100%;
  width: var(--sidebarWidth);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  position: relative;
  background: linear-gradient(180deg, var(--baseColorMix) calc(var(--chromeHeight1) + 1px), var(--sidebarColorMix) calc(var(--chromeHeight1) + 1px));
  max-width: var(--sidebarWidth);
  padding-top: var(--chromeHeight1);
}

#app-navbar {
  height: 40px;
  width: 100%;
  background: rgb(30 30 30 / 85%);
  position: sticky;
  top: 0px;
  left: 0;
  z-index: 2;
  backdrop-filter: blur(16px) saturate(180%);
}

#app-content {
  --navigationBarHeight: var(--chromeHeight1);
  background-color: var(--baseColorMix);
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  overflow-y: overlay;
  overflow-x: hidden;
  border-radius: 0;
  border-left: 1px solid var(--baseColorMix);
  // border-top: 1px solid rgb(0 0 0 / 25%);
  position: relative;

  &::-webkit-scrollbar-track-piece {
    margin-top: var(--chromeHeight1);
  }
}

.app-drawer {
  width: 300px;
  flex: 0 0 auto;
  position: absolute;
  right: 16px;
  background: var(--color2);
  border-radius: 12px;
  z-index: 10;
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: var(--ciderShadow-Generic);
  overflow: hidden;
  height: calc(calc(100% - 6%) - var(--chromeHeight1));
  top: calc(var(--chromeHeight1) + 3%);

  .bgArtworkMaterial {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;

    .bg-artwork-container .bg-artwork {
      filter: brightness(80%) blur(180px) saturate(180%) contrast(1);
    }
  }

  transition: 0.3s var(--appleEase);
}

.search-input-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(100, 100, 100, 0.35);
  border-top: 1px solid rgba(100, 100, 100, 0.5);
  border-bottom: 1px solid rgb(60 60 60 / 62%);
  font-family: inherit;
  font-size: 14px;
  background: #1e1e1e99;
  color: #c8c8c8;
  font-weight: 500;
  padding-left: 32px;
  position: relative;
}

.search-input:focus {
  outline: none;
  border-bottom: 1px solid var(--keyColor);
}

.search-input--icon {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  background-image: url("assets/search.svg");
  background-position: 10px;
  background-repeat: no-repeat;
  background-size: 12px;
  pointer-events: none;
  opacity: 0.55;
}

.app-sidebar-header {
  font-size: 14px;
  padding: 11px;
  font-weight: 600;
}

.app-sidebar-header-text {
  font-size: 11px;
  padding: 6px 6px;
  font-weight: 600;
  opacity: 0.5;
  background-image: url("");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: 98%;
  border-radius: 3px;

  &.collapsed {
    background-image: url("");
  }

  &:hover {
    background-color: var(--selected);
  }

  &:active {
    background-color: var(--selected-click);
  }
}

.app-sidebar-footer {
  border-top: 1px solid rgba(200, 200, 200, 0.15);
  padding: 11px;

  .app-playback-controls {
    margin: 0 auto;

    .control-buttons {
      display: flex;
      justify-content: center;
      align-content: center;
    }

    .volume {
      display: flex;
    }
  }

  &.collapseTab {
    display: flex;
    padding: 6px;
    border: 0;

    > button {
      appearance: none;
      width: 100%;
      position: relative;
      padding-left: 40px;
      text-align: left;
      font-family: inherit;

      &:hover {
        background-color: var(--selected);
      }

      &:active {
        background-color: var(--selected-click);
      }

      &:after {
        content: "";
        display: flex;
        justify-content: center;
        align-items: center;
        width: 46px;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        font-weight: bold;
        font-size: 1em;
        font-family: "codicon";
      }
    }
  }
}

.app-sidebar-button {
  width: 100%;
  padding: 0px;
  font-family: inherit;
  display: flex;
  border-radius: 6px;
  border: 1px solid rgb(200 200 200 / 5%);
  background: rgb(100 100 100 / 25%);
  color: #eee;
  font-weight: 500;
  align-items: center;

  &.active {
    background: rgb(200 200 200 / 15%);
    animation: usermenuBtnClick 0.3s cubic-bezier(0.36, 0, 0.66, -0.56);
  }
}

@keyframes usermenuBtnClick {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

.app-sidebar-button > .sidebar-user-icon {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background-image: var(--artwork);
  margin: 10px;
  flex: 0 0 auto;
  box-shadow: var(--mediaItemShadow);
  background-size: contain;
}

.app-sidebar-button > .sidebar-user-text {
  width: 100%;
  display: flex;
  font-size: 14px;
  flex-direction: column;
  text-align: center;
  margin-right: 35px;
}

.app-sidebar-button > .sidebar-user-text .fullname {
  text-align: left;
}

.app-sidebar-button > .sidebar-user-text .handle-text {
  font-size: 12px;
  opacity: 0.7;
  text-align: left;
}

.app-sidebar-notification {
  text-align: center;
  font-size: 12px;
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgb(200 200 200 / 15%);
  background: rgb(0 0 0 / 15%);
  flex-direction: column;
  padding: 10px 0px;

  &.libraryNotification {
    flex-direction: row;
    padding: 0px;

    .message {
      flex-grow: 1;
    }

    .spinner {
      width: 46px;
      height: 30px;
      margin-left: 1em;
    }
  }
}

.app-sidebar-content {
  padding: 8px;
  overflow-y: scroll;
  overflow-y: overlay;
  height: 100%;
}

#cmenu() {
  .container {
    position: absolute;
    left: 0px;
    width: var(--sidebarWidth);
    max-width: var(--sidebarWidth);
    padding: 10px;
    z-index: 1;
  }

  .body {
    background: rgb(30 30 30 / 45%);
    padding: 6px;
    border-radius: var(--panelRadius);
    width: 100%;
    box-shadow: var(--ciderShadow-Generic);
    backdrop-filter: var(--glassFilter);
    animation: cmenuBodyIn 0.5s var(--appleEase);

    @keyframes cmenuBodyIn {
      0% {
        background: rgb(30 30 30);
      }

      100% {
        background: rgb(30 30 30 / 45%);
      }
    }
  }

  .item {
    background: transparent;
    display: block;
    width: 100%;
    text-align: left;
    color: #eee;
    font-family: inherit;
    font-size: 15px;
    padding: 8px 12px;
    border: 0px;
    appearance: none;
    border-radius: 6px;
    margin: 2px 0px;

    &:hover {
      background: var(--selected);
    }
  }
}

.search-hints-container {
  top: 44px;
  #cmenu.container();

  .search-hints {
    background: rgb(30 30 30) !important;
    #cmenu.body();

    .search-hint {
      #cmenu.item();

      &.active {
        background: var(--keyColor);
      }
    }
  }
}

.usermenu-container {
  top: var(--chromeHeight1);
  z-index: 200001 !important;
  #cmenu.container();

  .usermenu-body {
    #cmenu.body();

    .usermenu-item {
      #cmenu.item();

      .usermenu-item-icon {
        position: relative;
        top: 1.5px;
        right: 3px;
        display: table-cell;
      }

      .usermenu-item-name {
        position: relative;
        bottom: 2px;
        padding-left: 5px;
        display: table-cell;
      }
    }
  }
}

.context-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 100;

  .context-menu-item {
    background: transparent;
    display: flex;
    width: 100%;
    text-align: left;
    color: #eee;
    font-family: inherit;
    font-size: 14px;
    padding: 6px 12px;
    border: 0px;
    appearance: none;
    border-radius: 6px;
    margin: 2px 0px;

    &:hover {
      background: var(--selected);
      cursor: pointer;
    }

    &:active {
      background: var(--selected-click);
    }
  }

  .context-menu-body {
    background: #242424;
    padding: 6px;
    border-radius: 6px;
    box-shadow: var(--ciderShadow-Generic);

    &.context-menu-open {
      animation-duration: 0.1s;
      animation-name: contextMenuIn;
      animation-iteration-count: 1;
      animation-easings: var(--appleEase);
    }

    &.context-menu-close {
      animation-duration: 0.1s;
      animation-name: contextMenuOut;
      animation-iteration-count: 1;
      animation-easings: var(--appleEase);
    }
  }
}

@keyframes contextMenuIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes contextMenuOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

.hidden-opacity {
  opacity: 0;
  height: 0px;
  width: 0px;
  margin: 0px;
}

.spinner {
  background-image: url("assets/spinner.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 50px;
  height: 50px;
  display: inline-block;
}

.app-sidebar-content::-webkit-scrollbar {
  display: none;
}

.app-sidebar-content:hover::-webkit-scrollbar {
  display: initial;
}

.app-sidebar-item {
  --iconSize: 18px;
  display: flex;
  width: 100%;
  padding: 8px 12px;
  font-weight: 400;
  font-family: inherit;
  font-size: 14px;
  margin: 3px 0px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #eee;
  transition: transform 0.1s;
  text-align: left;
  align-items: center;
  gap: 12px;
  position: relative;

  &.app-sidebar-item-playlist {
    -webkit-user-drag: element;
    overflow: hidden;
    text-overflow: ellipsis;

    .presentNotice {
      align-self: center;
      margin-left: 8px;
      text-transform: uppercase;
      font-size: 0.7em;
      opacity: 0.6;
    }
  }

  > ._svg-icon {
    --size: var(--iconSize);
    flex-shrink: 0;
  }
}

.app-sidebar-item:hover {
  border: 1px solid rgb(200 200 200 / 0%);
  background: rgb(180 180 180 / 15%);
  // cursor: pointer;
}

.app-sidebar-item:active {
  border: 1px solid rgb(200 200 200 / 0%);
  background: rgb(150 150 150 / 15%);
  // transform: scale(0.98);
  transition: transform 0s;
}

.app-sidebar-item.active {
  border: 1px solid rgb(200 200 200 / 0%);
  background: rgb(200 200 200 / 15%);
  transform: scale(1);
  transition: transform 0s;
  cursor: default;
}

.app-chrome {
  background-color: var(--baseColorMix);
  box-shadow:
    0px 3px 6px rgb(20 20 20 / 12%),
    0px 1px 0px 0px rgb(200 200 200 / 12%);
  width: 100%;
  height: var(--chromeHeight1);
  display: flex;
  flex-direction: row;
  -webkit-app-region: drag;
  z-index: 4;

  &:not(.chrome-bottom) {
    // box-shadow: 0px 0px
    z-index: 16;
    position: fixed;
    backdrop-filter: var(--glassFilter);

    .app-chrome--center {
      flex: 1;
    }
  }

  .top-nav-group {
    background: var(--baseColor);
    border: 1px solid lighten(@baseColor, 8);
    border-radius: 10px;
    display: flex;
    height: 32px;

    .app-sidebar-item {
      background-color: var(--baseColor);
      border-radius: 10px !important;
      border: 0px;
      min-width: 120px;
      padding: 6px;
      justify-content: center;
      align-items: center;
      margin: 0px;
      height: 100%;

      &:hover {
        background-color: lighten(@baseColor, @colorMixRate * 5);
      }

      &.active {
        background-color: lighten(@baseColor, @colorMixRate * 5);
      }

      &.md-btn-primary {
        box-shadow: 0px 0px 0px 1px lighten(@baseColor, @colorMixRate * 8);
        background-color: lighten(@baseColor, @colorMixRate * 5);
        z-index: 1;
      }
    }
  }

  .vdiv {
    width: 1px;
    background: white;
    opacity: 0.25;
    height: 50%;
    margin: 6px;
  }
}

.mv-chrome {
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 55px;
  -webkit-app-region: drag;
}

.app-chrome .app-chrome--left,
.app-chrome .app-chrome--center,
.app-chrome .app-chrome--right {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-chrome .app-chrome--left {
  width: 30%;
  justify-content: left;
  -webkit-app-region: drag;
}

.app-chrome .app-chrome--center {
  //width: 40%;
  .app-title-text {
    font-size: 0.8em;
  }
}

.app-chrome .app-chrome--right {
  width: 30%;
  justify-content: right;
}

.app-chrome .app-chrome-item {
  height: 100%;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-app-region: no-drag;
  height: auto;

  &.generic {
    width: 50px;
    opacity: 0.7;
  }

  &.volume {
    width: 100px;
    margin-right: 6px;
  }

  &.search {
    margin-right: 6px;
  }
}

.volume-button {
  background-image: url("./assets/feather/volume-2.svg");
  height: 15px;
  width: 30px;
  padding: 0px;
  background: transparent;
  border: 0px;
  border-radius: 0px;
  box-shadow: unset;
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  border-radius: 6px;
}

.volume-button:active,
.volume-button--small:active {
  transform: scale(0.9);
}

.volume-button.active,
.volume-button--small.active {
  background-image: url("./assets/feather/volume.svg");
}

.volume-button--small {
  border-radius: 6px;
  color: inherit;
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  height: 15px;
  width: 30px;
  border: 0px;
  box-shadow: unset;
  opacity: 0.7;
  background-image: url("./assets/feather/volume-2.svg");
}

.app-chrome .app-chrome-item.volume > input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #a5a8ba;
  box-shadow: 0px 0px 0px 1px rgba(0 0 0 / 10%);
  cursor: default;
  transition: all var(--appleTransition);
}

.app-chrome .app-chrome-item.volume > input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background-size: 70% 100%;
  background-repeat: no-repeat;
  width: 100%;
}

.app-chrome .app-chrome-item.volume > input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.app-chrome .back-button {
  height: 100%;
  width: 60px;
}

.app-chrome .app-chrome-item.full-height {
  height: 100%;
}

.app-chrome .app-chrome-item > .app-mainmenu {
  width: 34px;
  font-size: 13px;
  background: url("./assets/CiderMenu.svg");
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  height: 34px;
  margin-right: 16px;
  margin-left: 16px;
  margin-top: 1.5px;
  border: 0px;
  border-radius: 6px;
  transition: transform 0.1s var(--appleEase);
  position: relative;

  // &:after {
  //   content: "";
  //   background-image: var(--cvar-userprofileimg);
  //   height:100%;
  //   width:100%;
  //   top:0;
  //   left: 0;
  //   display:block;
  //   position: absolute;
  //   background-size: cover;
  //   border-radius: 100%;
  //   border: 0px solid rgb(50 50 50);
  //   box-shadow: 0px 0px 0px 1px rgb(80 80 80);
  // }

  &:hover {
    transform: scale(1.1);
  }

  &:active,
  &.active {
    border-radius: 100%;
    transform: scale(1.1);
    outline: 2px solid var(--keyColor);
  }
}

.app-chrome .app-chrome-item > .window-controls {
  width: 138px;
  font-size: 13px;
  height: 100%;
  display: flex;

  &-macos {
    width: 100px;
  }

  > div {
    height: 100%;
    width: 32px;

    &:hover {
      background: rgb(200 200 200 / 10%);
    }

    &.close {
      width: 100%;
      height: 100%;
      background-image: var(--gfx-closeBtn);
      background-position: center;
      background-repeat: no-repeat;
      -webkit-app-region: no-drag;

      &:hover {
        background-color: rgb(196, 43, 28);
      }
    }

    &.minmax {
      background-image: var(--gfx-maxBtn);
      background-position: center;
      background-repeat: no-repeat;
      -webkit-app-region: no-drag;
      width: 100%;
      height: 100%;
    }

    &.minmax.restore {
      background-image: var(--gfx-restoreBtn);
    }

    &.minimize {
      background-image: var(--gfx-minBtn);
      background-position: center;
      background-repeat: no-repeat;
      -webkit-app-region: no-drag;
      width: 100%;
      height: 100%;
    }
  }
}

body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.minimize {
  display: none;
}

//body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls {
//  display: none;
//}

body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.minmax {
  display: none;
}

body[platform="darwin"] .app-chrome .app-chrome-item > .window-controls > div.close {
  display: none;
}

.app-chrome .app-chrome-item.playback-controls {
  width: 80%;
  height: 90%;
  display: flex;
  max-width: 500px;
  border-left: 1px solid rgb(200 200 200 / 8%);
  border-right: 1px solid rgb(200 200 200 / 8%);
  -webkit-app-region: drag;
}

.app-chrome .app-chrome-item > .app-playback-controls {
  display: flex;
  justify-content: center;
  align-content: center;
  width: 100%;
  -webkit-app-region: no-drag;
}

.app-chrome .app-chrome-item > .app-playback-controls {
  .info-rect {
    mask-image: linear-gradient(-90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(-90deg, transparent 3%, black 10%, black 90%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .song-name {
    font-weight: 600;
    text-align: center;
    font-size: 13px;
    height: 1.3em;
    line-height: 1.3em;
    white-space: nowrap;
    max-width: 360px;

    .song-name-normal {
      height: inherit;
    }

    &.song-artist-marquee {
      > marquee {
        //margin-bottom: -3px;
      }
    }

    .explicit-icon {
      background-image: url("./assets/explicit.svg");
      height: 9px;
      width: 13px;
      filter: contrast(0);
      background-repeat: no-repeat;
      margin-left: 3px;
    }

    .heart-icon {
      height: 9px;
      width: 13px;
      filter: contrast(0);
      background-repeat: no-repeat;
      margin-left: 3px;
    }
  }

  .lossless-icon {
    background-image: url("./assets/lossless.svg") !important;
    margin-left: 0.5em !important;
    flex: 1;
  }

  .ppe-icon {
    background-image: url("./assets/ppe.svg") !important;
    margin-left: 0.5em !important;
    flex: 1;
  }

  .spatial-icon {
    background-image: url("./assets/spatialization.svg") !important;
    margin-left: 0.5em !important;
    flex: 1;
  }

  .private-icon {
    background-image: url("./assets/private.svg") !important;
    margin-left: 0.5em !important;
    flex: 1;
  }

  .live-icon {
    filter: none !important;
    margin-left: 0.5em !important;
    flex: 1;
  }

  .chrome-icon-container {
    display: flex;
    position: absolute;
    right: 0px;
  }

  .audio-type {
    filter: contrast(0);
    background-repeat: no-repeat;
    background-size: contain;
    height: 15px;
    width: 15px;
    margin-bottom: 15px;
    z-index: 1;
  }
}

// Add Music Video Icons to Songs that are Music Videos
div[data-type="library-music-videos"] .info-rect .title::before,
div[data-type="musicVideo"] .info-rect .title::before {
  content: "";
  background-image: url(./assets/feather/video.svg);
  background-size: contain;
  filter: invert(0.6);
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-bottom: -4px;
}

.app-chrome .app-chrome-item > .app-playback-controls .song-duration p {
  font-weight: 400;
  font-size: 10px;
  height: 1.2em;
  line-height: 1.3em;
  overflow: hidden;
  margin: 0 0 0 0.25em;
}

.app-playback-controls:hover .marquee {
  animation: unset;

  &.song-artist {
    overflow: hidden;
  }

  .song-artist {
    overflow: hidden;
  }

  &.song-name {
    overflow: hidden;
  }

  &::after {
    content: none !important;
    display: none;
  }
}

.marquee {
  animation: marquee 15s linear 2s infinite;

  &.song-artist {
    overflow: unset;
  }

  .song-artist {
    overflow: unset;
  }

  &.song-name {
    overflow: unset;
  }

  &::after {
    content: attr(data-value);
  }
}

.app-chrome .app-chrome-item > .app-playback-controls .song-progress {
  @bgColor: transparent;
  //height: 16px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  background: @bgColor;

  &:hover {
    > input[type="range"] {
      &::-webkit-slider-thumb {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
      }
    }
  }

  > input[type="range"] {
    appearance: none;
    width: 100%;
    height: 4px;
    background-color: rgb(200 200 200 / 10%);
    border-radius: 2px;
    margin: 0;

    &::-webkit-slider-thumb {
      opacity: 0;
      transform: scale(0.5);
      -webkit-appearance: none;
      appearance: none;
      width: 12px;
      height: 12px;
      border-radius: 100%;
      background: var(--songProgressColor);
      cursor: default;
      transition:
        opacity 0.1s var(--appleEase),
        transform 0.1s var(--appleEase);
    }

    &::-moz-range-thumb {
      width: 8px;
      height: 8px;
      border-radius: 100%;
      background: var(--songProgressColor);
      cursor: default;
    }
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-140%);
  }
}

.app-chrome .app-chrome-item > .app-playback-controls .artwork {
  width: 42px;
  height: 42px;
  background-image: var(--artwork);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: var(--mediaItemRadiusSmall);
  flex: 0 0 auto;
  margin: 6px;
  image-rendering: -webkit-optimize-contrast;

  .mediaitem-artwork {
    border-radius: var(--mediaItemRadiusSmall);
  }
}

.app-chrome .app-chrome-item > .app-playback-controls .actions {
  width: 42px;
  height: 42px;
  border-radius: 2px;
  flex: 0 0 auto;
  margin: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: contrast(0.8);

  .lcdMenu {
    height: 100%;
    width: 100%;
    padding: 0px;
    margin: 0px;
    background: transparent;
    border: 0px;
    appearance: none;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;

    &:focus {
      outline: none;
    }

    &:hover {
      background: var(--hover);
    }

    &:active {
      background: var(--selected-click);
      transform: scale(0.95);
    }

    .svg-icon {
      --url: url("views/svg/more.svg") !important;
    }
  }
}

.app-chrome .app-chrome-item > .app-playback-controls .playback-info {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app-chrome .app-chrome-item > .app-playback-controls .playback-info > .song-progress {
  width: 100%;
}

.app-navigation {
  background: transparent;
  align-items: center;
  justify-content: center;
  background: var(--color1);
  height: calc(100% - var(--chromeHeight2));
  width: 100%;
  display: flex;
  position: relative;
}

.app-chrome .app-chrome-item > .app-playback-controls .song-artist-album {
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  /*height       : 1.2em;
  line-height    : 1.2em;*/
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 340px;
  overflow: hidden;

  .song-artist-album-content {
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    width: 100%;

    &.song-artist-normal {
      height: inherit;
    }
  }

  &.song-artist-marquee {
    > marquee {
      margin-bottom: -3px;
    }
  }
}

.display--small {
  display: none !important;
}

.web-slider.display--small {
  margin: 10px;
}

input[type="range"].web-slider.display--small::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: rgb(50 50 50);
  cursor: default;
  box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.4);
}

/* Window is smaller <= 1023px width */
@media only screen and (max-width: 1120px) {
  .display--small {
    display: inherit !important;

    .slider {
      width: 100%;
      z-index: 1;
    }

    .input-container {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      padding-bottom: 10px;
    }

    input[type="range"] {
      -webkit-appearance: none;
      height: 4px;
      background: rgba(255, 255, 255, 0.4);
      border-radius: 5px;
      background-size: 70% 100%;
      background-repeat: no-repeat;

      &::-webkit-slider-thumb {
        -webkit-appearance: none;
        height: 14px;
        width: 14px;
        border-radius: 50%;
        background: rgb(50 50 50);
        cursor: default;
        box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.4);
        transition: all var(--appleTransition);
      }

      &::-webkit-slider-thumb:hover {
        background-image: radial-gradient(var(--songProgressColor) 2px, transparent 3px, transparent 10px);
        transform: scale(1.2);
      }

      &::-webkit-slider-thumb:active {
        background-image: radial-gradient(var(--songProgressColor) 3px, transparent 4px, transparent 10px);
        transform: scale(1);
      }

      &::-webkit-slider-runnable-track {
        -webkit-appearance: none;
        box-shadow: none;
        border: none;
        background: transparent;
      }
    }
  }

  .display--large {
    display: none !important;
  }
}

.cider-flex-center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.md-container {
  width: 100%;
  position: relative;
}

.lyric-body {
  -webkit-mask-image: -webkit-gradient(linear, left 95%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-flow: column;
  font-family:
    "Pretendard Variable",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans TC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

.lyric-body .no-lyrics {
  width: 100%;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 26px;
}

.lyric-line {
  --bgSpeed: 1s;
  appearance: none;
  color: white;
  font-size: 26px;
  transform: scale(0.8);
  transform-origin: left center;
  transition: transform 0.5s var(--appleEase);
  opacity: 0.75;
  width: auto;
  display: inline-block;
  margin: 10px;
  margin-left: 5%;
  margin-right: 0px;
  overflow-wrap: break-word;
}

.lyric-line.active .verse {
  opacity: 0.6;
}

.lyric-line.active .verse.verse-active {
  opacity: 1;
  transition: opacity 0.35s var(--appleEase);
}

.lyric-line:hover {
  cursor: pointer;
}

.lyric-line:hover::after {
  content: " ";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1.06);
  background: rgba(200, 200, 200, 0.1);
  pointer-events: none;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
}

.lyric-line.active {
  --bgSpeed: 1s;
  opacity: 1;
  transform: scale(1);
  /*background: var(--keyColor);*/
  transition:
    transform 0.2s var(--appleEase),
    opacity 0.35s var(--appleEase);
}

.lyric-line:not(.active) {
  filter: blur(1px);
}

.lyric-line:not(.active).unsynced {
  filter: none !important;
}

.lyric-line.unsynced {
  filter: none !important;
}

.lyric-body:hover > .lyric-line:not(.active) {
  filter: none !important;
}

.lyric-body > .lyric-line:not(.active) {
  // transition: filter var(--appleEase) 0.5s ease;
}

.lyricWaiting {
  margin-bottom: 10px;
  display: none;
}

.lyric-line.active .lyricWaiting {
  display: inline-flex;
  animation: lyricWaitingLine 6s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.lyric-line.active .lyricWaiting > div {
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  margin: 3px;
}

.lyrics-translation {
  font-size: 1.6rem;
  font-weight: 450;
  font-family:
    "Pretendard Variable",
    "Noto Sans JP",
    "Noto Sans KR",
    "Noto Sans TC",
    "Noto Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  filter: contrast(0.5);
}

.lyric-footer {
  bottom: 0;
  height: 50px;
  width: 100%;
  position: absolute;
  z-index: 1000;
  opacity: 1;
  background-image: linear-gradient(180deg, transparent, rgba(30, 30, 30, 0.8));
  justify-content: center;
  align-items: center;
  display: none;
  transition: opacity 0.1s var(--appleEase);
}

.lyric-body:hover + .lyric-footer,
.lyric-footer:hover {
  display: flex;
}

.modular-fs .app-drawer .lyric-footer {
  background: unset;
  display: flex;
  opacity: 0.3;
}

.modular-fs .app-drawer .lyric-footer:hover {
  opacity: 1;
}

.modular-fs .app-drawer .lyric-body .no-lyrics {
  height: 100%;
  display: flex;
}

@keyframes lyricWaitingLine {
  0% {
    opacity: 0.25;
    transform: scale(0.85);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
}

@keyframes dotOpacity {
  0% {
    opacity: 0.25;
  }

  100% {
    opacity: 1;
  }
}

.lyric-line2:before {
  background: var(--keyColor);
  content: "";
  width: 0%;
  height: 6px;
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 10px;
  z-index: -1;
  transition: width var(--bgSpeed);
}

.lyric-line2.active:before {
  width: 100%;
  transition: width var(--bgSpeed);
}

.player_top {
  height: 100%;
}

/* Cider */

.more-btn-round {
  border-radius: 100%;
  background: rgba(100, 100, 100, 0.5);
  box-shadow: var(--ciderShadow-Generic);
  width: 32px;
  height: 32px;
  border: 0px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;

  &:hover {
    filter: brightness(125%);
  }

  &:active {
    filter: brightness(75%);
    transform: scale(0.98);
    transition:
      transform 0s var(--appleEase),
      box-shadow 0.2s var(--appleEase);
  }

  .svg-icon {
    width: 100%;
    background: #eee;
    --url: url("./views/svg/more.svg");
  }
}

.social-btn {
  border-radius: 100%;
  background: transparent;
  height: 17px;
  border: 0px;
  cursor: pointer;
  z-index: 69;
  display: flex;
  justify-content: center;
  align-items: center;
  float: right;
}

@media only screen and (min-width: 1133px) and (max-width: 1277px) {
  .about-page {
    .social-btn {
      display: none !important;
    }
  }
}

.about-page {
  .teamBtn {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 14px;
    padding: 6px 16px;
    margin: 4px;

    > img {
      width: 30px;
      margin: 0px 16px 0px 0px;
      pointer-events: none;
      border-radius: 100%;
      box-shadow: var(--mediaItemShadow);
      image-rendering: -webkit-optimize-contrast;
    }
  }

  .sponsorBtn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    > img {
      width: 26px;
      margin: 0px 16px 0px 0px;
      pointer-events: none;
    }

    &.githubBtn {
      background-color: #211f1f;
    }

    &.kofiBtn {
      background-color: #fbaa19;
    }

    &.opencollectiveBtn {
      background-color: #7fadf2;
    }

    &.discordBtn {
      background-color: #5865f2;
    }

    &.twitterBtn {
      background-color: #1d9bf0;
    }

    &.qqBtn {
      background-color: #d32f2f;
    }
  }
}

.sidebar-playlist {
  .folder-button-active {
    background: rgb(255 255 255 / 12%);
  }

  .folder-body {
    background: #ffffff0a;
    border-radius: 10px;
    padding: 1px 6px;

    .spinner {
      display: block;
      width: 100%;
      height: 32px;
      background-size: 16px;
    }
  }
}

#navigation-bar {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  height: var(--navigationBarHeight);
  display: flex;
  align-items: center;
  padding: 0px 6px;
  z-index: 7;
  position: sticky;
  top: 0;
  left: 0;
  backdrop-filter: blur(32px);
  //box-shadow: 0px 1px 0px rgba(185, 185, 185, 0.08);
  mix-blend-mode: hard-light;

  .nav-item {
    appearance: none;
    border: 0px;
    height: 32px;
    width: 40px;
    background: transparent;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(200, 200, 200, 0.8);
    margin: 2px;
    border-radius: 6px;
    transition: transform 0.1s var(--appleEase);

    &:active {
      background: var(--selected-click);
      transform: scale(0.96);
      transition: transform 0s var(--appleEase);
    }

    > svg {
      width: 8px;
      pointer-events: none;
    }

    &:hover {
      background: var(--selected);

      > svg {
        color: rgba(200, 200, 200, 1);
      }
    }
  }
}

.well {
  background: rgba(200, 200, 200, 0.05);
  border-radius: 10px;
  padding: var(--contentInnerPadding);
  margin-top: 16px;

  &.itemContainer {
    display: flex;
    flex-flow: wrap;
    justify-content: center;

    .cd-mediaitem-square-container {
      align-items: center;
    }

    .cd-mediaitem-square {
      width: 220px;
      height: 260px;
      display: inline-flex;
      flex: 0 0 auto;
      flex-direction: column;
      font-size: 14px;
      justify-content: center;
      align-items: center;
      border-radius: 6px;
      max-width: 240px;
      flex-grow: 1;
    }

    &.collection-list-square {
      display: grid;
      grid-template-columns: repeat(4, minmax(200px, 1fr));

      // screen size > 1200px
      @media screen and (min-width: 1500px) {
        grid-template-columns: repeat(5, minmax(200px, 1fr));
      }

      // less than 1100px
      @media screen and (max-width: 1150px) {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
      }
    }
  }
}

.cd-mediaitem-square-container {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.reasonSP {
  // margin-left: 15px;
  color: rgb(167 163 163);
  font-weight: 500;
  margin-left: 15px;
}

.text-overflow-elipsis {
  display: -webkit-box;
  min-width: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.no-animation {
  animation: unset !important;
}

@import url("less/fullscreen.less");
@import url("less/miniplayer.less");

// Cider App

#micaEffect {
  opacity: 1;
  // animation: micaEnter 1s ease-in-out forwards;
  filter: brightness(1) saturate(320%);

  @keyframes micaEnter {
    0% {
      opacity: 0;
      transform: translateY(10px);
    }

    100% {
      opacity: 1;
      transform: translateY(0px);
    }
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

// Modular
.modular-fs {
  .app-chrome.chrome-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 14 !important;
    backdrop-filter: var(--glassFilter);
  }

  .app-navigation {
    height: 100%;
  }

  .app-drawer {
    width: 100%;
    right: 0px;
    top: 0px;
    height: 100%;
    border-radius: 0px;
    box-shadow: unset;
    background: black;

    .bgArtworkMaterial {
      display: block;

      &::before {
        top: -50%;
        left: -20%;
        width: 200vh;
        height: 200vh;
      }

      .bg-artwork-container {
        display: block !important;
      }
    }

    .lyric-body {
      justify-content: center;
      align-items: center;
      padding: 0px;
      margin: 0px;
      overflow: hidden;
      filter: drop-shadow(0px 4px 6px rgb(0 0 0 / 70%));

      .lyric-line {
        pointer-events: none;
        font-weight: 600;
        font-size: 2em;
        transform-origin: center;
        animation: fsLyricIn var(--appleEase) 0.2s;
        opacity: 0.9;

        &:not(.active) {
          display: none;
          margin: 0;
          transform: scale(1);
        }

        &.active {
          margin: 0;
          transform: scale(1);
        }
      }
    }
  }
}

@keyframes fsLyricIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

// Modular

/* Transitions */

.replaycard-enter-active,
.replaycard-leave-active {
  transition:
    opacity 0.5s var(--appleEase),
    transform 0.5s var(--appleEase);
}

.replaycard-enter,
.replaycard-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.15s var(--appleEase);
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.modal-enter-active,
.modal-leave-active {
  transition:
    opacity 0.1s var(--appleEase),
    transform 0.1s var(--appleEase);
}

.modal-enter,
.modal-leave-to {
  opacity: 0;
  transform: scale(1.1);
}

.wpfade-enter-active,
.wpfade-leave-active {
  transition: opacity 0.1s var(--appleEase);
}

.wpfade-enter,
.wpfade-leave-to {
  opacity: 0;
}

.wpfade_transform-enter-active,
.wpfade_transform-leave-active {
  --transitionTime: 0.2s;
  transition: opacity var(--transitionTime) var(--appleEase);
  will-change: opacity, transform;
}

.wpfade_transform-enter {
  opacity: 0;
  transform: unset;
  will-change: opacity;
}

.wpfade_transform-leave-to {
  opacity: 0;
  transform: unset;
  will-change: opacity;
}

.wpfade_transform_backwards-enter-active,
.wpfade_transform_backwards-leave-active {
  --transitionTime: 0.2s;
  transition: opacity var(--transitionTime) var(--appleEase);
}

.wpfade_transform_backwards-enter {
  opacity: 0;
  transform: unset;
  will-change: opacity;
}

.wpfade_transform_backwards-leave-to {
  opacity: 0;
  transform: unset;
  will-change: opacity;
}

.fabfade-enter-active,
.fabfade-leave-active {
  transition:
    transform 0.1s var(--appleEase),
    opacity 0.1s var(--appleEase);
}

.fabfade-enter,
.fabfade-leave-to {
  opacity: 0;
  transform: scale(0.5);
}

.fsModeSwitch-enter-active,
.fsModeSwitch-leave-active {
  transition:
    transform 1s var(--appleEase),
    opacity 1s var(--appleEase);
}

.fsModeSwitch-enter,
.fsModeSwitch-leave-to {
  transform: scale(1.1);
  opacity: 0;
}

.sidebartransition-enter-active,
.sidebartransition-leave-active {
  transition: margin-left 0.35s var(--appleEase);
}

.sidebartransition-enter,
.sidebartransition-leave-to {
  margin-left: calc(var(--sidebarWidth) * -1);
}

.drawertransition-enter-active,
.drawertransition-leave-active {
  transition: transform 0.25s var(--appleEase);
}

.drawertransition-enter,
.drawertransition-leave-to {
  transform: translateX(400px);
}

@media (prefers-color-scheme: dark) {
}

:root {
  --gfx-closeBtn: url("");
  --gfx-maxBtn: url("");
  --gfx-restoreBtn: url("");
  --gfx-minBtn: url("");
}

#apple-music-video-container {
  background: black;
  position: absolute;
  float: left;
  display: none;
  width: 100%;
  height: 100%;
  bottom: 0;
  z-index: 100000;
  &.mini {
    width: 20%;
    height: 20%;
    right: 2vw;
    bottom: 5vh;
  }
}

#apple-music-video-container {
  // AM Web Style Fullscreen Button
  #player-fullscreen {
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    filter: opacity(0.6);
    // filter: drop-shadow(0px 0px 4px rgb(0 0 0 / 80%));
    background-color: transparent;
    border-radius: 10px;
    transition: 0.2s ease-in-out filter;
    bottom: 0;

    &:hover {
      filter: opacity(1);
      transition: 0.2s ease-in-out filter;
    }
  }

  // AM Web Style PiP Button
  #player-pip {
    background-color: transparent;
    border-radius: 10px;
    bottom: 0;
    filter: opacity(0.6);
    transition: 0.2s ease-in-out filter;

    &.mini {
      right: 0px;
    }

    &:hover {
      filter: opacity(1);
      transition: 0.2s ease-in-out filter;
    }
  }

  .playback-info {
    position: absolute;
    width: 100%;
    bottom: 0;
    padding: 20px 40px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%);

    .song-artist {
      font-size: 1.7rem;
      font-weight: bold;
    }

    .song-name {
      font-size: 1.2rem;
      font-weight: bold;
      color: rgb(255, 255, 255, 0.8);
    }
  }

  input[type="range"] {
    align-self: center;
    height: 4px;
    border-radius: 0.5rem;
    margin-inline: 10px;
  }

  .song-progress input[type="range"] {
    appearance: initial;

    &::-webkit-slider-thumb {
      box-shadow: 0px 0px 0px #000000;
      border: 1px solid #39404d;
      background: #fff;
      height: 0.7rem;
      width: 0.7rem;
      border-radius: 50%;
      cursor: pointer;
      -webkit-appearance: none;
    }
  }
}

#apple-music-video-player {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translate(0, -50%);
  height: 100%;
}

#app.twopanel #apple-music-video-container {
  top: 0;
  bottom: unset;
}

.inactive {
  opacity: 0;
}

#apple-music-video-player-controls {
  position: absolute;
  z-index: 100001;
  float: left;
  width: 100%;
  height: 100%;

  .playback-info {
    .song-progress {
      display: flex;
    }

    .app-chrome-item.display--large {
      position: relative;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: center;

      .playback-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 3px;
      }
    }

    .song-artist-album {
      font-weight: 400;
      font-size: 12px;
      text-align: center;
      /*height       : 1.2em;
      line-height    : 1.2em;*/
      z-index: 1;
      align-items: center;
      justify-content: center;
      width: 80%;
      max-width: 340px;
      overflow: hidden;

      .song-artist-album-content {
        font-weight: 400;
        font-size: 12px;
        text-align: center;
        width: 100%;

        &.song-artist-normal {
          height: inherit;
        }
      }

      &.song-artist-marquee {
        > marquee {
          margin-bottom: -3px;
        }
      }
    }
  }
}

#apple-music-video-player-controls #player-exit {
  position: absolute;
  z-index: 100001;
  float: left;
  width: 100%;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

#apple-music-video-player-controls #player-pip {
  position: absolute;
  z-index: 100001;
  width: 32px;
  height: 32px;
  margin: 10px;
  right: 50px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#apple-music-video-player-controls #player-pip > svg {
  width: 50%;
}

#apple-music-video-player-controls #player-fullscreen {
  position: absolute;
  z-index: 100001;
  width: 32px;
  height: 32px;
  margin: 10px;
  right: 0px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#apple-music-video-player-controls #player-fullscreen > svg {
  width: 70%;
}

#apple-music-video-player-controls:hover {
  opacity: 1;
}

img[src=""] {
  text-indent: -10000px;
}

div#captions {
  font-size: 1.2rem;
  position: absolute;
  top: 85%;
  text-align: center;
  width: auto;
  align-self: center;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: yellow;
  white-space: pre-line;
  font-family: "Inter", "Noto Sans JP", "Source Han Sans SC", "Source Han Sans HK", "Source Han Sans SC", "Source Han Sans HK", "Noto Sans SC", "Noto Sans TC", "Noto Sans HK", "Noto Sans KR", sans-serif;
}

[v-cloak] {
  display: none !important;
}

.item-navigate:hover {
  text-decoration: underline;
  cursor: pointer;
}

.title-browse-sp {
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
}

.bold {
  font-weight: bold;
}

.semibold {
  font-weight: 500;
}

.madeforyou-body {
  margin-top: 15px;
}

.albums-square-container {
  text-align: center;
}

body.no-gpu {
  --ciderShadow-Generic: var(--mediaItemShadow);
  --mediaItemShadow-Shadow: var(--mediaItemShadow);
  --mediaItemShadow-ShadowSubtle: var(--mediaItemShadow);

  .bg-artwork-container {
    display: none;
    animation: none !important;

    .bg-artwork {
      animation: none !important;
    }
  }

  .floating-header {
    background: black;
    backdrop-filter: unset;
  }

  .artworkContainer {
    animation: unset !important;
    opacity: 0.7;
  }

  .info-rect-card {
    &:before {
      display: none;
    }
  }

  .menu-panel .menu-panel-body {
    background: rgb(30 30 30);
    backdrop-filter: unset;
  }

  #navigation-bar {
    backdrop-filter: unset;
    mix-blend-mode: unset;
    background: rgb(0 0 0);
  }

  .addtoplaylist-panel {
    .modal-window {
      background: rgb(18 18 18);
      backdrop-filter: unset;
    }
  }

  .app-drawer {
    backdrop-filter: unset;
    mix-blend-mode: unset;
    background: #1c1c1c;
    transition: unset;
  }

  .wpfade-enter-active,
  .wpfade-leave-active {
    transition: opacity 0s var(--appleEase);
  }

  .wpfade-enter,
  .wpfade-leave-to {
    opacity: 0;
  }

  .drawertransition-enter-active,
  .drawertransition-leave-active {
    transition: right 0s var(--appleEase);
  }

  .drawertransition-enter,
  .drawertransition-leave-to {
    right: -300px;
  }

  .lyric-line:hover::after {
    display: none;
  }
}

.qrimg {
  width: -webkit-fill-available;
  max-block-size: -webkit-fill-available;
  object-fit: contain;
  overflow-x: hidden;
  overflow-y: hidden;
}

.moreinfo-modal {
  .modal-window {
    height: max-content !important;

    .modal-content {
      height: max-content !important;
      padding-block: 25px;
    }
  }
}

.equalizer-panel {
  .modal-window {
    height: 330px;
    max-height: 330px;
    width: 740px;
    max-width: 800px;
    overflow: hidden;

    .info-header {
      padding-left: 12px;
    }

    .visual-container {
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .modal-header {
      padding: 16px;
      position: relative;
      overflow: hidden;

      .modal-title {
        text-align: center;
      }

      .close-btn {
        .menu-panel.menu-header-text.close-btn;
      }
    }

    .modal-content {
      display: block;

      .inputs-container {
        margin-left: 8px;
      }

      .input-container {
        display: inline-grid;
        width: 54px;
        justify-items: center;
        font-size: 0.7em;
      }

      .input-container.mini {
        display: inline-grid;
        width: 43px;
        justify-items: center;
        font-size: 0.7em;
      }

      .freq-header {
        margin-bottom: 2px;
      }

      .reset-button {
        width: 50%;
        margin-left: 25%;
        text-align: center;
      }

      input.eq-slider {
        -webkit-appearance: slider-vertical;
        width: 5%;
      }

      input[type="number"] {
        padding: unset;
        width: 55px;
      }

      .header input.eq-slider {
        -webkit-appearance: slider-vertical;
        width: 5%;
        opacity: 0;
      }
    }

    .modal-lowercontent {
      padding: 16px;
      background-color: var(--modalBackground);
    }
  }
}

body[platform="darwin"] {
  #window-controls-container {
    display: none;
  }

  .app-chrome .app-chrome-item > .app-mainmenu {
    opacity: 0;
    width: 52px;
    pointer-events: none;
    -webkit-app-region: drag;
  }
}

.percent {
  display: inline-block;
  position: relative;
}

.percent::after {
  position: relative;
  right: 2em;
  transition: all 0.05s ease-in-out;
}

.percent:hover::after,
.percent:focus-within::after {
  right: 3.5em;
}

.percent::after {
  content: "%";
}

.playbackrate-text {
  align-items: end;
  margin-right: 5px;
}

.modal .close {
  color: transparent;
}

.spatialproperties-panel.modal-fullscreen {
  flex-direction: column;
}

.cursor {
  background: rgb(255 255 255 / 50%);
  width: 16px;
  height: 16px;
  position: fixed;
  z-index: 9999999999;
  pointer-events: none;
  border-radius: 100%;
  box-shadow: 0px 0px 0px 2px rgb(200 200 200 / 100%);
  top: 0;
  left: 0;
  display: none;
}

.keybinds-page {
  .md-option-header {
    padding: 10px 0px;
    border-bottom: unset;
    border-top: unset;
    font-weight: 600;
    background: rgba(255, 255, 255, 0);
    font-size: 2em;
  }

  .md-option-header-sub {
    padding: 15px 10px;
    border-bottom: unset;
    border-top: unset;
    background: rgba(255, 255, 255, 0);
    font-weight: 600;
    font-size: 1.7em;
  }

  .md-option-line {
    padding: 15px 20px;
    font-size: 0.9em;
  }
}

.content-inner.keybinds-page {
  top: var(--navigationBarHeight);
  padding: 15px;
}

@import url("less/macos.less");
@import url("less/linux.less");
@import url("less/compact.less");
@import url("less/directives.less");
@import url("less/macosemu.less");
